import Vue from 'vue'
import Router from 'vue-router'
// import home from '@/components/Home/home'
// import checkbook from '@/components/Home/Content/Navigates/Flowouts/checkbook'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: resolve => require(['@/components/Home/home'], resolve)
      // component: home
    },
    // {
    //   path: '/',
    //   name: 'home',
    //   component: resolve => require(['@/components/Home/Content/Navigates/Usermess/register'], resolve)
    //   // component: home
    // },
    {
      path: '/userdetails/:id',
      name: 'userdetails',
      component: resolve => require(['@/components/Home/Content/userdetails'], resolve)
    },
    {
      path: '/blogdetails/:id',
      name: 'blogdetails',
      component: resolve => require(['@/components/Home/Content/blogdetails'], resolve)
    },
    {
      path: '/searchContent',
      name: 'searchContent',
      component: resolve => require(['@/components/Home/Content/Navigates/searchContent'], resolve)
    },
    {
      path: '/resource',
      name: 'resource',
      component: resolve => require(['@/components/Home/Content/Navigates/resource'], resolve)
    },
    {
      path: '/upload',
      name: 'upload',
      component: resolve => require(['@/components/Home/Content/Navigates/upload'], resolve)
    },
    {
      path: '/write',
      name: 'write',
      component: resolve => require(['@/components/Home/Content/Navigates/write'], resolve)
    },
    {
      path: '/comment',
      name: 'comment',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/comment'], resolve)
    },
    {
      path: '/click',
      name: 'click',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/click'], resolve)
    },
    {
      path: '/focus',
      name: 'focus',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/focus'], resolve)
    },
    {
      path: '/letter',
      name: 'letter',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/letter'], resolve)
    },
    {
      path: '/sendmess/:id',
      name: 'sendmess',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/sendmess'], resolve)
    },
    {
      path: '/fans',
      name: 'fans',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/fans'], resolve)
    },
    {
      path: '/usercenter',
      name: 'usercenter',
      component: resolve => require(['@/components/Home/Content/Navigates/usercenter'], resolve)
    },
    {
      path: '/like',
      name: 'like',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/like'], resolve)
    },
    {
      path: '/collect',
      name: 'collect',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/collect'], resolve)
    },
    {
      path: '/myblog',
      name: 'myblog',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/myblog'], resolve)
    },
    {
      path: '/myvideo',
      name: 'myvideo',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/myvideo'], resolve)
    },
    {
      path: '/mybook',
      name: 'mybook',
      component: resolve => require(['@/components/Home/Content/Navigates/Flowouts/mybook'], resolve)
    },
    {
      path: '/register',
      name: 'register',
      component: resolve => require(['@/components/Home/Content/Navigates/Usermess/register'], resolve)
    },
    {
      path: '/login',
      name: 'login',
      component: resolve => require(['@/components/Home/Content/Navigates/Usermess/login'], resolve)
    },
    {
      path: '/SelfStudy/studyMain',
      name: 'studyMain',
      component: resolve => require(['@/components/Home/Content/Navigates/SelfStudy/studyMain'], resolve),
      // meta: {
      //   keepAlive: false
      // }
    },
    {
      path: '/SelfStudy/finished',
      name: 'finished',
      component: resolve => require(['@/components/Home/Content/Navigates/SelfStudy/finished'], resolve)
    }
  ]
})
